package com.mycode.command15.resolve;

// 最小化命令类：具体命令类
public class MinimizeCommand extends Command {

    // 维持对请求接收者的引用
    private WindowHandler windowHandler;

    public MinimizeCommand() {
        this.windowHandler = new WindowHandler();
    }

    // 命令执行方法
    @Override
    public void execute() {
        windowHandler.minimize();
    }
}
